﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>dome</title>
<link rel="stylesheet" href="jquery.wysiwyg.css" type="text/css" media="screen" />
  <script type="text/javascript" src="../jquery-1.2.6.js"></script>
  <script type="text/javascript" src="jquery.wysiwyg.js"></script>
  <script type="text/javascript">
  /*<![CDATA[*/
  $(function()
  {
      $('#wysiwyg').wysiwyg();
  });
  
  
  /*]]>*/
    </script>

</head>

<body>
 <textarea id="wysiwyg" name="youname" rows="11" cols="69"></textarea>


<a id="clickMe" href="javascript:void(0)">clickMe</a>
<SCRIPT LANGUAGE="JavaScript">
// var t=document.getElementById("wysiwyg");
//t.value+"");
$("#wysiwyg")
	.html('<a href="asdf">这里是链接形式的文本</a>正常文本');
$("#clickMe").click(function(){
	alert($("#wysiwyg").html());
});
</SCRIPT>

</body>
</html>

